import React from 'react';

import { Result, Button } from 'antd';

export default class Error404 extends React.Component{
    error = ()=>{
        this.props.history.push('/home')
    };
    render(){
        return (
        <Result
            status="404"
            title="404"
            subTitle="抱歉，你访问的页面不存在"
            extra={<Button onClick={this.error} type="primary">返回首页</Button>}
        />
        )
    }
}